﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XimalayaAudioDownloader
{
    public class XmlyModelData
    {
        public string currentUid { set; get; }
        public string albumId { set; get; }
        public int sort { set; get; }
        public int trackTotalCount { set; get; }
        public int pageNum { set; get; }
        public int pageSize { set; get; }
        public List<XmlyMusic> tracks { set; get; }
    }
    public class XmlyModel
    {
        public int ret { set; get; }
        public string msg { set; get; }
        public XmlyModelData data { set; get; }

        public double PageCount => Math.Ceiling((data.trackTotalCount * 1.00) / data.pageSize);
    }

    public class XmlyMusic
    {
        public int index { set; get; }// 718,
        public string trackId { set; get; }// 123846022,
        public bool isPaid { set; get; }// false,
        public int tag { set; get; }// 0,
        public string title { set; get; }// 安徽宣布启动非洲猪瘟疫情Ⅰ级应急响应|2018-09-18,
        public int playCount { set; get; }// 54425,
        public bool showLikeBtn { set; get; }// true,
        public bool isLike { set; get; }// false,
        public bool showShareBtn { set; get; }// true,
        public bool showCommentBtn { set; get; }// true,
        public bool showForwardBtn { set; get; }// true,
        public string createDateFormat { set; get; }// 12小时前,
        public string url { set; get; }// /toutiao/4308484/123846022
    }
}
